
import { IModuleConf } from '@wangeditor/editor'
import { withDavinciImage } from './plugin.ts'
import renderElem from './render-elem.ts'
import { uploadImageMenuConf, ImageBottomMenuConf, ImageMiddleMenuConf, ImageTopMenuConf, DeleteImageMenuConf } from './menu/index.ts'
import { imageToHtmlConf } from './elem-to-html.ts'
import './image.scss'

const module: Partial<IModuleConf> = {

  editorPlugin: withDavinciImage,
  renderElems: [renderElem],
  // parseElemsHtml: [elemToHtmlConf],
  elemsToHtml: [imageToHtmlConf],
  menus: [uploadImageMenuConf, ImageMiddleMenuConf, ImageBottomMenuConf, ImageTopMenuConf, DeleteImageMenuConf],
}

export default module
